<link type="text/css" rel="stylesheet" href="__JS__/vendor/datepicker/css/bootstrap-datetimepicker.css" />
<script type="text/javascript" src="__JS__/vendor/momentjs/moment-with-langs.min.js"></script>
<script type="text/javascript" src="__JS__/vendor/datepicker/bootstrap-datetimepicker.min.js"></script>
<script>
    $(function(){
        $('#datetimeStart,#datetimeEnd').datetimepicker({
            language: "zh-CN",
            //format: "YYYY-MM-DD HH:mm",
            format: "YYYY-MM-DD",
            icons: {
                time: "fa fa-clock-o",
                date: "fa fa-calendar",
                up: "fa fa-arrow-up",
                down: "fa fa-arrow-down"
            }
        });
        
        $('.time_type').change(function(){
            var time_type = $(this).val();
            if(time_type != ''){
                $('.date_type_div').hide();
            }else{
                $('.date_type_div').show();
            }
        })
    })

    {neq name="time_type" value=""}
        $('.date_type_div').hide();
    {/neq}
</script>